import request from "@/libs/request";

export function findListeningChapterList(data) {
  return request({
    url: "/listening/api/sync/getTrainingChapter",
    method: "post",
    data,
  });
}

export function findSentenceList(data) {
  return request({
    url: "/listening/api/sync/findSentenceList",
    method: "post",
    data,
  });
}

export function findSentence(data) {
  return request({
    url: "/listening/api/sync/findSentence",
    method: "post",
    data,
  });
}

export function listeningSyncSave(data) {
  return request({
    url: "/listening/api/sync/save",
    method: "post",
    data,
  });
}

export function testCommit(data) {
  return request({
    url: "/listening/api/sync/testCommit",
    method: "post",
    data,
  });
}

export function findCourseList() {
  return request({
    url: "/listening/api/test/findCourseList",
    method: "post",
  });
}

export function findChapterList(data) {
  return request({
    url: "/listening/api/test/findChapterList",
    method: "post",
    data,
  });
}

export function findChapterContent(data) {
  return request({
    url: "/listening/api/test/findChapterContent",
    method: "post",
    data,
  });
}

export function listeningTestSave(data) {
  return request({
    url: "/listening/api/test/save",
    method: "post",
    data,
  });
}
